'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    console.log(ctx.query);
    var data = await ctx.model.Top250.find({});
    ctx.body = {
        code:200,
        msg:"top250数据",
        data,
    }
  }
}

module.exports = HomeController;